package org.jsola.hr.query;


import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.query.BaseQuery;
import org.jsola.hr.dto.TypeAndId;

import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * 客户结算查询
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class HrMonthlySalaryQuery extends BaseQuery {

    private static final long serialVersionUID = 1L;


    @ApiParam(value = "年")
    @NotNull(message = "年份不能为空")
    private Integer yearly;


    @ApiParam(value = "月")
    @NotNull(message = "月份不能为空")
    private Integer monthly;

    @ApiParam(value = "客户明细类型;salary:薪资明细，social:社保明细，customer:客户明细")
    @NotNull(message = "客户明细类型不能为空")
    private String customerDetailsType;

    @ApiParam(value = "类型和Id")
    private List<TypeAndId> typeAndIdList;

    /**
     * 用根节点代替 List<TypeAndId> typeAndIdList
     */
    private TypeAndId type;

}
